package com.itheima.utils;

import java.util.Random;

/**
 * @author wuyiqiang
 * @2022/6/17 16:16
 */
public class ValidateCodeUtils {
    /**
     * 随机生成指定长度字符串验证码
     * @param length 长度
     * @return
     */
    public static int generateValidateCode4String(int length){
        Random rdm = new Random();
        int capstr = rdm.nextInt(9000) + 1000;
        return capstr;
    }

}
